           package com.java.diagnostics.visualizer.parser.vgc.converters;
           
           import com.java.diagnostics.visualizer.data.axes.UnitConverterDefinition;
           import com.java.diagnostics.visualizer.gc.defaultextensions.util.Messages;
           import com.java.diagnostics.visualizer.impl.axes.UnitConverterDefinitionImpl;
           import com.java.diagnostics.visualizer.parser.vgc.constants.VGCAxes;
           import com.java.diagnostics.visualizer.parser.vgc.constants.VGCGCScopes;
           
           public class GCScopeUnitConverter extends EnumerationUnitConverter
           {
             public static final String BASEUNITS = VGCAxes.SCOPECODE;
             public static final String LABEL = Messages.getString("VGCAxes.gc.scope");
           
             public static final String UNITS = Messages.getString("GCScopeUnitConverter.region");
           
             private static final UnitConverterDefinition definition = new UnitConverterDefinitionImpl(
               BASEUNITS, LABEL, UNITS, false);
             private static final String NURSERY = "nursery";
           
             public String formatUnconverted(double number)
             {
               if ((number == VGCGCScopes.NURSERY_INT) || 
                 (number == VGCGCScopes.SCAVENGE_INT)) {
                 return "nursery";
               }
               return VGCGCScopes.intToName((int)Math.round(number));
             }
           
             public double parseUnconverted(String region)
             {
               return VGCGCScopes.nameToInt(region);
             }
           
             public UnitConverterDefinition getDefinition()
             {
               return definition;
             }
           }

